home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hobby PC 13
/
Hobby PC 13.iso
/
assets
/
Asset Library
/
Images
/
Mouseover Buttons
/
For White Backgrounds
/
bluebounce
/
fxitems.xml
< prev
Wrap
Extensible Markup Language
|
2001-04-09
|
6KB
|
80 lines
<?xml version="1.0" standalone="yes"?>
<Items>
<Template>
<Item Type="File" CLASS="Mouseover Button" ID="%Filename%" FILEFILTER="*.gif;*.jpg;*.png">
<Icon SRC="%Filename%"/>
<Icon2 SRC="%Filename%"/>
<Description>%ASK:Description:%{Button ALT Text}</Description>
<Filename SRC="%Filename%"/>
<Filename2 SRC="%Filename%"/>
<SCRIPT LANGUAGE="JScript"><![CDATA[
var src, src2, dest, attr, attr2, dst2, dst;
src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
src2 = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename2, 0, SRC)%";
function buildpath()
{
if (ActiveDocument.InCurrentProject)
{
dst = Application.ProjectDirectory + "\\images\\buttons\\default\\%Filename%";
dst2 = Application.ProjectDirectory + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = Application.PathToURL(dst, ActiveDocument.Path + "default/%Filename%");
attr2 = Application.PathToURL(dst2, ActiveDocument.Path + "over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%");
}
else
{
dst = ActiveDocument.Path + "\\images\\buttons\\default\\%Filename%";
dst2 = ActiveDocument.Path + "\\images\\buttons\\over\\%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
attr = "images/buttons/default/%Filename%";
attr2 = "images/buttons/over/%thisItem.SQ_getChildAttribute("Filename2", 0,"SRC")%";
}
}
function dropfxnow()
{
Application.FX.CopyFile(src, dst);
Application.FX.CopyFile(src2, dst2);
Application.FX.SelectDropPoint();
AttrID=ActiveDocument.UniqueAttributeValue("ID","hover")
Application.FX.HTML('<A HREF=\"{Choose URL}\" ONMOUSEOVER=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr2 + '\'\}\" ONMOUSEOUT=\"if \(' + AttrID + '.src\) {' + AttrID + '.src=\'' + attr + '\'}\"><IMG ID=\"' + AttrID + '\" SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
Application.FX.ShowDialog('ANCHOR');
}
// First, check if the file is saved
if (ActiveDocument.Path != "")
{
buildpath();
dropfxnow();
}
else
{
ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
if (ans == 1)
{
ActiveDocument.SaveAs();
}
if (ActiveDocument.Path != "") //check again if they did indeed save and name file
{
buildpath();
dropfxnow();
}
}
]]>
</SCRIPT>
</Item>
</Template>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbattn"><Icon SRC="bn_wbattn.gif"/><Icon2 SRC="(bn)wbattn.gif"/><Description>Attention</Description><Filename SRC="bn_wbattn.gif"/><Filename2 SRC="(bn)wbattn.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbdown"><Icon SRC="bn_wbdown.gif"/><Icon2 SRC="(bn)wbdown.gif"/><Description>Down</Description><Filename SRC="bn_wbdown.gif"/><Filename2 SRC="(bn)wbdown.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbemail"><Icon SRC="bn_wbemail.gif"/><Icon2 SRC="(bn)wbemail.gif"/><Description>Email</Description><Filename SRC="bn_wbemail.gif"/><Filename2 SRC="(bn)wbemail.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbfaq"><Icon SRC="bn_wbfaq.gif"/><Icon2 SRC="(bn)wbfaq.gif"/><Description>FAQ</Description><Filename SRC="bn_wbfaq.gif"/><Filename2 SRC="(bn)wbfaq.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbgoback"><Icon SRC="bn_wbgoback.gif"/><Icon2 SRC="(bn)wbgoback.gif"/><Description>Go Back</Description><Filename SRC="bn_wbgoback.gif"/><Filename2 SRC="(bn)wbgoback.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbhelp"><Icon SRC="bn_wbhelp.gif"/><Icon2 SRC="(bn)wbhelp.gif"/><Description>Help</Description><Filename SRC="bn_wbhelp.gif"/><Filename2 SRC="(bn)wbhelp.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbhome"><Icon SRC="bn_wbhome.gif"/><Icon2 SRC="(bn)wbhome.gif"/><Description>Home</Description><Filename SRC="bn_wbhome.gif"/><Filename2 SRC="(bn)wbhome.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbnext"><Icon SRC="bn_wbnext.gif"/><Icon2 SRC="(bn)wbnext.gif"/><Description>Next</Description><Filename SRC="bn_wbnext.gif"/><Filename2 SRC="(bn)wbnext.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbprev"><Icon SRC="bn_wbprev.gif"/><Icon2 SRC="(bn)wbprev.gif"/><Description>Previous</Description><Filename SRC="bn_wbprev.gif"/><Filename2 SRC="(bn)wbprev.gif"/></Item>
<Item Type="File" CLASS="Mouseover Button" ID="bn_wbup"><Icon SRC="bn_wbup.gif"/><Icon2 SRC="(bn)wbup.gif"/><Description>Up</Description><Filename SRC="bn_wbup.gif"/><Filename2 SRC="(bn)wbup.gif"/></Item>
</Items>